1 00:00:00,210 --> 00:00:05,880 Now let's make it so that Chuck Norris chases after anybody who hurts him, anybody who shoots them 2 00:00:05,880 --> 00:00:06,820 like a player. 3 00:00:06,840 --> 00:00:10,470 So I'm going to go down to move Npk on Chuck. 4 00:00:10,500 --> 00:00:12,000 Chuck is in server storage. 5 00:00:12,030 --> 00:00:14,400 Chuck Norris, Move MPC. 6 00:00:14,700 --> 00:00:15,660 There we go. 7 00:00:15,660 --> 00:00:19,830 And we have a humanoid we connected to died event to it. 8 00:00:20,520 --> 00:00:22,170 Let's get the AI humanoid. 9 00:00:22,200 --> 00:00:23,430 Chuck Humanoid. 10 00:00:23,910 --> 00:00:26,570 Dot health change. 11 00:00:26,580 --> 00:00:32,280 So this is an event that fires if your health change, if you get healthy or if you get hurt. 12 00:00:33,090 --> 00:00:40,220 Well we only care if the health changes and we find a creator tag on his humanoid. 13 00:00:40,230 --> 00:00:41,520 Somebody shot him. 14 00:00:41,520 --> 00:00:43,470 We have creator tag on our weapon. 15 00:00:43,470 --> 00:00:48,660 So I'll get a variable for any possible creator tags. 16 00:00:48,660 --> 00:00:50,340 Creator tag. 17 00:00:50,610 --> 00:01:00,150 And what we're going to do is get the eye humanoid, do a fine first child and the creator tag is called 18 00:01:00,480 --> 00:01:01,560 Creator. 19 00:01:01,560 --> 00:01:04,920 You can look in the pistol if you don't remember how we did it. 20 00:01:05,610 --> 00:01:06,030 All right. 21 00:01:06,030 --> 00:01:17,520 So if the creator tag exists, somebody just heard them because the creator tag only lives for 2 seconds. 22 00:01:17,520 --> 00:01:27,840 So let's look for a player that hit him with the creator tag and the value of the creator tag is the 23 00:01:27,840 --> 00:01:28,500 player. 24 00:01:28,950 --> 00:01:34,830 We're going to get the character because we have to tag characters the way we set up. 25 00:01:34,830 --> 00:01:43,170 Chuck's find nearest or fine closest, whichever it was, find closest char do the player dot character 26 00:01:44,550 --> 00:01:49,740 or player dot character added. 27 00:01:49,740 --> 00:01:51,510 Oh, I spelled character wrong here. 28 00:01:53,490 --> 00:02:00,300 Got to change it while I see it or I'll forget character added. 29 00:02:00,300 --> 00:02:01,530 Wait. 30 00:02:02,670 --> 00:02:06,120 Once we get the character, we're going to get our collection service. 31 00:02:06,120 --> 00:02:08,820 We already got a CSS variable for collection service. 32 00:02:08,820 --> 00:02:19,390 We're going to add the tag char chuck target you've been tagged. 33 00:02:19,410 --> 00:02:20,550 Let's go ahead and play it. 34 00:02:22,660 --> 00:02:24,100 And play here. 35 00:02:26,560 --> 00:02:27,560 There you go. 36 00:02:27,580 --> 00:02:29,740 Chuck's going to pop into the world. 37 00:02:29,830 --> 00:02:31,060 There he is. 38 00:02:33,880 --> 00:02:35,140 Oh, man. 39 00:02:37,140 --> 00:02:38,190 Look at that. 40 00:02:38,520 --> 00:02:40,230 Luckily, he kicked us out of range.